package com.ccrfid.rmc6.repository.alarm;

import com.ccrfid.rmc6.entity.alarm.AlarmNotifyStrategyEntity;
import com.ccrfid.rmc6.repository.search.SearchableRepository;
import org.springframework.data.repository.Repository;

import java.util.List;

public interface AlarmNotifyStrategyRepository extends Repository<AlarmNotifyStrategyEntity, Long>,
        SearchableRepository<AlarmNotifyStrategyEntity> {
    //
    AlarmNotifyStrategyEntity getById(Long id);
    //
    AlarmNotifyStrategyEntity save(AlarmNotifyStrategyEntity entity);
    //
    List<AlarmNotifyStrategyEntity> getAllByEnabled(Integer enabled);
    //
    void deleteById(Long id);
    //
    Boolean existsById(Long id);
}
